package com.mrjy.common.thread;

import org.apache.log4j.Logger;

import com.mrjy.wechat.conts.WxConsts;
import com.mrjy.wechat.util.WeChatUtil;

public class ActivityThreadTask implements Runnable{

	private static Logger logger = Logger.getLogger(ActivityThreadTask.class);
	private String openid;
	
	public ActivityThreadTask(String openid) {
		this.openid = openid;
	}
	
	@Override
	public void run() {
		try {
			
			String first = "支持疫情防控";
			String key1 = "课堂免费听";
			String key2 = "2月3日至2月29日";
			String key3 = "期间内课程全部免费";
			String remark  = "";
			
			WeChatUtil.sendWechatTemplateMessageActivity(first, key1, key2, key3, remark, 
					WxConsts.PUBLIC_DOMAIN, openid);
			
			
		} catch (Exception e) {
			logger.fatal("活动消息发送失败");
            e.printStackTrace();
		}
		
	}
	

}
